import request from "@/utils/request";

import { baseUrlConfig } from "@/config/config";
const basePath = baseUrlConfig.processBaseUrl;
const userCenterUrl = baseUrlConfig.userCenterUrl;
// 协同人
export const getUser = () => {
  return request({
    url: userCenterUrl + "/user/find",
    method: "post",
    data: {},
  });
};
// 多部门协同处置列表
export const getCoordinationList = (data: any) => {
  return request({
    url: basePath + "/event/report/pageList",
    method: "post",
    data,
  });
};
// 多部门协同处置列表
export const exportList = (data: any) => {
  return request({
    url: basePath + "/event/report/export",
    method: "post",
    responseType: "blob",
    data,
  });
};
// 确认接收
export const receive = (data: any) => {
  return request({
    url: basePath + "/event/report/receive",
    method: "post",
    data,
  });
};
// 事件处置
export const eventDisposition = (data: any) => {
  return request({
    url: basePath + "/event/handle/exec",
    method: "post",
    data,
  });
};
// 事件处置记录信息
export const dispositionInfo = (data: any) => {
  return request({
    url: basePath + "/event/handle/pageList",
    method: "post",
    data,
  });
};
// 事件接收记录信息
export const receiveInfo = (data: any) => {
  return request({
    url: basePath + "/event/receive/pageList",
    method: "post",
    data,
  });
};
